<template>
	<view class="box">
		<view class="img"><image src="../../static/noData/zwwl.png" /></view>
		<view class="text">网络异常，请重新尝试~</view>
		<view class="button" @click="refresh()">刷新</view>
	</view>
</template>

<script>
	export default {
		props: {},
		name: "netError",
		data() {
			return {};
		},
		methods: {
			// 刷新事件
			refresh() {
				this.$emit('refresh', true)
			}
		}
	}
</script>

<style lang="scss">
	/* 缺省页 */
	.box {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		
		.img {
			margin-top: 80rpx;
			width: 394rpx;
			height: 394rpx;
		
			img {
				width: 100%;
				height: 100%;
			}
		}
		
		.text {
			width: 100%;
			text-align: center;
			padding: 40rpx 0;
			color: #AFAFAF;
			font-size: 30rpx;
		}
		
		.button {
			width: 200rpx;
			height: 72rpx;
			line-height: 72rpx;
			text-align: center;
			margin: 0rpx auto 100rpx;
			border-radius: 80rpx;
			color: #FFFFFF;
			background: #1585FC;
		}
	}
</style>
